package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DecimalType implements PredefinedType {

    private int beginIndex;
    private int endIndex;
    private UnsignedInteger precision;
    private UnsignedInteger scale;

    public DecimalType(int beginIndex, int endIndex, UnsignedInteger precision, UnsignedInteger scale) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.precision = precision;
        this.scale = scale;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public UnsignedInteger getPrecision() {
        return precision;
    }

    public UnsignedInteger getScale() {
        return scale;
    }
    
}
